body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* 页头样式 */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(156, 231, 234);;
    padding: 20px;
    color: white;
}


#logo {
    width: 200px;
    
    height: auto;
}

#title {
    font-size: 2rem;
    font-weight: bold;
}

/* 选择按钮部分 */
#select {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
    background-color: #ffffff;
}

.button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    }
.type-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.type-button:hover {
    background-color: #45a049;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search-box input {
    padding: 8px;
    margin-right: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
}

.search-box button {
    padding: 8px 16px;
    border: none;
    background-color: #ff6347;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #ff4500;
}

/* 表格样式 */
#content {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#content th,
#content td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

#content th {
    background-color: rgb(156, 231, 234);;
    color: white;
}

#content td {
    background-color: #fff;
}

#content tr:nth-child(even) {
    background-color: #f9f9f9;
}

#content a {
    color: #ff6347;
    text-decoration: none;
    margin: 0 5px;
}

#content a:hover {
    text-decoration: underline;
}

#introduce {
    position: relative;
}

#update {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#update:hover {
    background-color: #45a049;
}
/* 侧边栏样式 */
.sidebar {
    background-color: #aececf;
    color: white;
    padding: 20px;
    width: 200px;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    overflow-y: hidden;
    font-size: 24px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 35px;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

.sidebar a:hover {
    background-color: #5a9b9d;
}

/* 使主内容区不被侧边栏遮挡 */
main {
    margin-left: 220px;
    padding: 20px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .sidebar {
        display:none;
    }
}

@media screen and (max-width: 768px) {
    .sidebar ul {
        font-size: 18px;
    }
    .sidebar li {
        margin-bottom: 20px;
    }
}
@media screen and (max-width: 768px) {
    #content table, #content thead, #content tbody, #content th, #content td, #content tr {
        display: block;
    }
    #content thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    #content tr {
        border: 1px solid #ccc;
        margin-bottom: 15px;
    }
    #content td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    #content td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }
    #content td:nth-of-type(1):before { content: "编号"; }
    #content td:nth-of-type(2):before { content: "宝可梦名称"; }
    #content td:nth-of-type(3):before { content: "元素属性"; }
    #content td:nth-of-type(4):before { content: "招牌技能"; }
    #content td:nth-of-type(5):before { content: "发现地"; }
    #content td:nth-of-type(6):before { content: "录入时间"; }
    #content td:nth-of-type(7):before { content: "操作"; }
}
@media screen and (max-width: 768px) {
    .search-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box input {
        width: 100%;
        margin-bottom: 10px;
    }

    .type-button {
        margin-bottom: 10px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    #logo {
        margin-bottom: 10px;
    }

    #update {
        bottom: 10px;
        right: 10px;
        padding: 8px 16px;
    }
}

#editButton {
    padding: 8px 16px;
    border: none;
    background-color: #ff6347;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}
.table-container {
    margin: 20px auto; /* 上下20px的外边距，左右自动居中 */
    max-width: 90%; /* 设置最大宽度，防止表格过宽 */
    padding: 20px; /* 添加内边距 */
    background-color: #fff; /* 如果需要，可以添加背景色 */
    border-radius: 10px; /* 圆角边框 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}
#ds {
    max-width: 300px;
}
table {
    width:100%;
    border-collapse: collapse;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
th {
    background-color: #2c3e50;
    color: white;
}
tr:nth-child(even) {
    background-color: #f2f2f2;
}